package com.jason.campusinn.utils;/*
package com.jason.campusinn.utils;

import android.content.Context;
import android.graphics.Bitmap;
import android.view.View;

import com.lidroid.xutils.BitmapUtils;
import com.lidroid.xutils.bitmap.BitmapDisplayConfig;
import com.lidroid.xutils.bitmap.callback.BitmapLoadCallBack;
import com.lidroid.xutils.task.Priority;
import com.yuandian.wanna.WannaApp;
import com.yuandian.wanna.constants.Constants;
public class ImageXUtlsLoader {

    private Context mContext;
    private static volatile ImageXUtlsLoader mDownloader;
    private BitmapUtils mBitmapUtils;
    private BitmapDisplayConfig mBitmapDisplayConfig;

    private ImageXUtlsLoader(Context mContext){
        if (mBitmapUtils == null){
            mBitmapUtils = new BitmapUtils(mContext, Constants.IMAGE_PATH,50*1024*1024);
            mBitmapDisplayConfig = new BitmapDisplayConfig();
            mBitmapDisplayConfig.setBitmapConfig(Bitmap.Config.ARGB_8888);
//            mBitmapDisplayConfig.setPriority(Priority.BG_TOP);
            mBitmapUtils.configThreadPoolSize(5);
            mBitmapUtils.configMemoryCacheEnabled(false);
            mBitmapUtils.configDiskCacheEnabled(true);
            mBitmapUtils.configDefaultDisplayConfig(mBitmapDisplayConfig);
            mBitmapUtils.configDefaultBitmapMaxSize(WannaApp.getInstance().mScreenWidth,WannaApp.getInstance().mScreenHeight);
        }


    }

    public static synchronized ImageXUtlsLoader getInstence(Context mContext){
        if (mDownloader == null) {
            mDownloader = new ImageXUtlsLoader(mContext);
        }
        return mDownloader;
    }

    public BitmapUtils getmBitmapUtils() {
        return mBitmapUtils;
    }

    public <T extends View> void display(T contaier,String url,int mLoadingImage,int mFailedImage){
        mBitmapUtils.configDefaultLoadFailedImage(mFailedImage);
        mBitmapUtils.configDefaultLoadingImage(mLoadingImage);
        mBitmapUtils.display(contaier,url);
    }

    public <T extends View> void display(T contaier,String url,int mLoadingImage,int mFailedImage,BitmapLoadCallBack<T> mCallback){
        mBitmapUtils.configDefaultLoadFailedImage(mFailedImage);
        mBitmapUtils.configDefaultLoadingImage(mLoadingImage);
        mBitmapUtils.display(contaier,url,mCallback);
    }

    public void clearCache(){
        if (mBitmapUtils != null){
            mBitmapUtils.clearCache();
        }
    }

}
*/
